package main

import (
	"fmt"
	"time"
)
func task(){
	for{
		fmt.Println("thread1---task")
		time.Sleep(time.Second)
	}
}
func main() {
	go task()
	for {
		fmt.Println("main线程")
		time.Sleep(time.Second)
	}
	
}
